﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.MD主数据
{
    /// <summary>
    /// 工作站表
    /// </summary>
    public class MdWorkstation : Entity<int>
    {
        /// <summary>
        /// 工作站编码
        /// </summary>
        [Required]
        [StringLength(64)]
        public string WorkstationCode { get; set; } = string.Empty;

        /// <summary>
        /// 工作站名称
        /// </summary>
        [Required]
        [StringLength(255)]
        public string WorkstationName { get; set; } = string.Empty;

        /// <summary>
        /// 工作站地点
        /// </summary>
        [StringLength(255)]
        public string WorkstationAddress { get; set; } = string.Empty;

        /// <summary>
        /// 所属车间ID
        /// </summary>
        public long? WorkshopID { get; set; }

        /// <summary>
        /// 所属车间编码
        /// </summary>
        [StringLength(64)]
        public string WorkshopCode { get; set; } = string.Empty;

        /// <summary>
        /// 所属车间名称
        /// </summary>
        [StringLength(255)]
        public string WorkshopName { get; set; } = string.Empty;

        /// <summary>
        /// 工序ID
        /// </summary>
        public long? ProcessID { get; set; }

        /// <summary>
        /// 工序编码
        /// </summary>
        [StringLength(64)]
        public string ProcessCode { get; set; } = string.Empty;

        /// <summary>
        /// 工序名称
        /// </summary>
        [StringLength(255)]
        public string ProcessName { get; set; } = string.Empty;

        /// <summary>
        /// 是否启用
        /// </summary>
        [Required]
        [StringLength(1)]
        public string EnableFlag { get; set; } = "Y";

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(64)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(64)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}

